home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
REFERENC
/
TPR
/
SOURCE.EXE
/
DMSGBOX2.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1992-08-07
|
433b
|
21 lines
{ DMSGBOX2.PAS
Demonstrates use of the MessageBox function
}
procedure TShell.DemoMessageBox;
var
Control : Word;
ErrMsg : Array [0..0] of Longint;
FileName: String;
begin
FileName := 'SAMPLE.TXT';
ErrMsg[0] := Longint(@FileName);
Control := MessageBox ('Problem renaming %s', @ErrMsg,
mfError or mfOKButton or mfCancelButton );
end; { TShell.DemoMessageBox }